package com.intellij.licensecommon.net;

import java.util.Arrays;

public class i {
    private final b_ a;
    private final Address b;

    public i(byte[] paramArrayOfByte, Address paramAddress) {
        this.a = new b_(paramArrayOfByte, null);

        this.b = paramAddress;
    }

    public Address a() {
        return this.b;
    }

    public byte[] b() {
        return this.a.a();
    }

    public String toString() {
        return "Packet{" + this.b + ":" + this.a + "}";
    }

    public boolean equals(Object paramObject) {
        if (this == paramObject) {
            return true;
        }
        if (!(paramObject instanceof i)) {
            return false;
        }
        i locali = (i) paramObject;
        if (this.b != null ? !this.b.equals(locali.b) : locali.b != null) {
            return false;
        }
        if (this.a != null ? !this.a.equals(locali.a) : locali.a != null) {
            return false;
        }
        return true;
    }

    public int hashCode() {
        int i = this.a != null ? this.a.hashCode() : 0;
        i = 29 * i + (this.b != null ? this.b.hashCode() : 0);
        return i;
    }

    private static class b_ {
        private final byte[] a;

        private b_(byte[] paramArrayOfByte) {
            this.a = paramArrayOfByte;
        }

        private byte[] a() {
            return this.a;
        }

        public String toString() {
            return new String(this.a);
        }

        public boolean equals(Object paramObject) {
            if (this == paramObject) {
                return true;
            }
            if (!(paramObject instanceof b_)) {
                return false;
            }
            b_ localb_ = (b_) paramObject;
            if (!Arrays.equals(this.a, localb_.a)) {
                return false;
            }
            return true;
        }

        public int hashCode() {
            return new String(this.a).hashCode();
        }
    }
}
